/*  1:   */ package org.jetbrains.jps.model.module.impl;
/*  2:   */ 
/*  3:   */

import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.jetbrains.jps.model.library.JpsLibrary;
import org.jetbrains.jps.model.library.sdk.JpsSdkReference;
import org.jetbrains.jps.model.library.sdk.JpsSdkType;
import org.jetbrains.jps.model.module.JpsSdkDependency;

/*  4:   */
/*  5:   */
/*  6:   */
/*  7:   */
/*  8:   */
/*  9:   */
/* 10:   */ 
/* 11:   */ public class JpsSdkDependencyImpl
/* 12:   */   extends JpsDependencyElementBase<JpsSdkDependencyImpl>
/* 13:   */   implements JpsSdkDependency
/* 14:   */ {
/* 15:   */   private final JpsSdkType<?> a;
/* 16:   */   
/* 17:   */   public JpsSdkDependencyImpl(@NotNull JpsSdkType<?> paramJpsSdkType)
/* 18:   */   {
/* 19:33 */     this.a = paramJpsSdkType;
/* 20:   */   }
/* 21:   */   
/* 22:   */   public JpsSdkDependencyImpl(JpsSdkDependencyImpl paramJpsSdkDependencyImpl)
/* 23:   */   {
/* 24:37 */     super(paramJpsSdkDependencyImpl);
/* 25:38 */     this.a = paramJpsSdkDependencyImpl.a;
/* 26:   */   }
/* 27:   */   
/* 28:   */   @NotNull
/* 29:   */   public JpsSdkDependencyImpl createCopy()
/* 30:   */   {
/* 31:44 */     void tmp8_5 = new JpsSdkDependencyImpl(this);
/* 32:44 */     if (tmp8_5 == null) {
/* 33:44 */       throw new IllegalStateException(String.format("@NotNull method %s.%s must not return null", new Object[] { "org/jetbrains/jps/model/module/impl/JpsSdkDependencyImpl", "createCopy" }));
/* 34:   */     }
/* 35:44 */     return tmp8_5;
/* 36:   */   }
/* 37:   */   
/* 38:   */   @NotNull
/* 39:   */   public JpsSdkType<?> getSdkType()
/* 40:   */   {
/* 41:50 */     JpsSdkType tmp4_1 = this.a;
/* 42:50 */     if (tmp4_1 == null) {
/* 43:50 */       throw new IllegalStateException(String.format("@NotNull method %s.%s must not return null", new Object[] { "org/jetbrains/jps/model/module/impl/JpsSdkDependencyImpl", "getSdkType" }));
/* 44:   */     }
/* 45:50 */     return tmp4_1;
/* 46:   */   }
/* 47:   */   
/* 48:   */   public JpsLibrary resolveSdk()
/* 49:   */   {
/* 50:55 */     JpsSdkReference localJpsSdkReference = getSdkReference();
/* 51:56 */     if (localJpsSdkReference == null) {
/* 52:56 */       return null;
/* 53:   */     }
/* 54:57 */     return (JpsLibrary)localJpsSdkReference.resolve();
/* 55:   */   }
/* 56:   */   
/* 57:   */   @Nullable
/* 58:   */   public JpsSdkReference<?> getSdkReference()
/* 59:   */   {
/* 60:63 */     return getContainingModule().getSdkReference(this.a);
/* 61:   */   }
/* 62:   */   
/* 63:   */   public boolean isInherited()
/* 64:   */   {
/* 65:68 */     return false;
/* 66:   */   }
/* 67:   */   
/* 68:   */   public String toString()
/* 69:   */   {
/* 70:73 */     return "sdk dep [" + this.a + "]";
/* 71:   */   }
/* 72:   */ }



/* Location:           E:\idea\

 * Qualified Name:     org.jetbrains.jps.model.module.impl.JpsSdkDependencyImpl

 * JD-Core Version:    0.7.0.1

 */